package com.top.jwtdemo.mapper;

import com.top.jwtdemo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select *from user where name=#{name} and password=#{password}")
    User getUserByNameAndPassword(@Param("name")String name, @Param("password")String password);
}
